given two points write the equation